package com.ray.pojo;

import java.util.List;
import java.util.Map;

import org.junit.validator.PublicClassValidator;

import com.ray.bean.QCProcessBean;

import lombok.Data;
@Data
public class BaseProcessDetailPojo {
	private Integer id;
	private Integer sort;//顺序
	private Integer productionLine;//部门id
	private String  deptName;//部门名称
	private Integer workshopName;//车间id
	private String  workName;//车间名称
	private String processName;//工序名称
	private String status;//状态
	private String chargeUnit;//计价单位
	private Double unitPrice;//单价
	private String processCode;//工序代码
	private String creater;//创建人
	private String creationTime;//创建时间
	private String lastModifier;//修改人
	private String lastModifyTime;//修改时间
	private Double workingProcedureDuration;//工序作业时间
	private String auditor;//审核人
	private String auditTime;//审核时间
	private Integer orderNumber;//_Sortkey 序号
	private String processingObject;//工序加工对象
	private Integer isNeedReviewed;//是否需要审核
	private List<Map<String,Object>> reviewerList;//可审核人list
	private List<Map<String,Object>> qcReviewerList;//qc可审核人list
    private int handoverTime;//交接时间
    private String timeUnit;//计时单位
    private Double selfCheckTime;//自检时间
    private Double siteCheckTime;//巡检时间
    private int reportMode;//报工方式  1 人工 2设备
    private int reportModeRecord;//修改的报工方式  24点后生效1 人工 2设备
    private String reportModeStr;//报工方式字符串
    private String isNeedReviewedStr;//是否需要审核
    private List<QCProcessBean> qcList;//qc配置
    
    /**
     * 设置报工方式字符串
     */
    public void setReportModeStr() {
    	if(this.getReportMode() == 1) {
    		this.reportModeStr = "人工";
    	}
    	if(this.getReportMode() == 2) {
    		this.reportModeStr = "设备";
    	}
    }
    
    /**
     * 设置是否需要审核字符串
     */
    public void setIsNeedReviewedStr() {
    	if(this.getIsNeedReviewed() == 0) {
    		this.isNeedReviewedStr = "不需要";
    	}
    	if(this.getIsNeedReviewed()==1) {
    		this.isNeedReviewedStr = "需要";
    	}
    }
    
    
    
}
